package com.jnzc.ocr.serv.shop.entity;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author zhangcm
 * @version 1.0, 2017-10-06
 */
@ApiModel(description = "商品SKU列表")
public class ShopGoodsSku {

	@ApiModelProperty(value = "ID")
	private Long id;
	@ApiModelProperty(value = "店铺ID")
	private Long shopId;
	@ApiModelProperty(value = "产品ID")
	private Long productId;
	@ApiModelProperty(value = "描述")
	private String name;
	@ApiModelProperty(value = "编码")
	private String attr;
	@ApiModelProperty(value = "价格")
	private BigDecimal price;
	@ApiModelProperty(value = "创建时间")
	private Date createTime;
	@ApiModelProperty(value = "库存数量")
	private Integer stockNum;
	@ApiModelProperty(value = "销售数量")
	private Integer saleNum;

	@ApiModelProperty(value = "产品属性")
	@TableField(exist = false)
	private List<ShopProductAttr> attrList;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	public Long getShopId() {
		return shopId;
	}

	public void setShopId(Long shopId) {
		this.shopId = shopId;
	}
	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public String getAttr() {
		return attr;
	}

	public void setAttr(String attr) {
		this.attr = attr;
	}
	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Integer getStockNum() {
		return stockNum;
	}

	public void setStockNum(Integer stockNum) {
		this.stockNum = stockNum;
	}
	public Integer getSaleNum() {
		return saleNum;
	}

	public void setSaleNum(Integer saleNum) {
		this.saleNum = saleNum;
	}

	public List<ShopProductAttr> getAttrList() {
		return attrList;
	}

	public void setAttrList(List<ShopProductAttr> attrList) {
		this.attrList = attrList;
	}
}
